/**
 * Created by Aquila on 2016/1/3.
 */
(function ($) {
    $(function () {
        $("select:visible:not(.selectfilter):not(.filtered)").select2({
            "minimumResultsForSearch": 6,
            "allowClear": false,
            "closeOnSelect": true,
            //"placeholder": "",
            //"width": "100%"
        });
        $("select:visible:not(.selectfilter):not(.filtered)").hide()
        Suit.after_inline.register('select2_inline', function (inline_prefix, row) {
            $(row).find("select:not(.selectfilter):not(.filtered)").select2({
                "minimumResultsForSearch": 6,
                "allowClear": false,
                "closeOnSelect": true,
                //"placeholder": "",
                //"width": "100%"
            });
            $(row).find("select:not(.selectfilter):not(.filtered)").hide();
            $(row).find("span.select2").css({"min-width": "120px", "width": "100%"});
            Suit.date_picker.update();
        });

        $("th").css("white-space", "nowrap");
        $(".btn-group-lg").empty();
        var divs = $(".col-lg-4 div[class='input-group']");
        divs.css("width", "100%");
        $("span.select2").css({"min-width": "100px"});
        $(".input-group-btn").hide();
    });
}(Suit.$));